package com.zhc.dejingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhc
 * @since 2024-10-07
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("qing_injectionmoldsendworkdetail")
@ApiModel(value = "QingInjectionmoldsendworkdetailEntity对象", description = "")
public class QingInjectionmoldsendworkdetailEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "main_id", type = IdType.AUTO)
    private Long mainId;

    @ApiModelProperty("applyId")
    @TableField("applyId")
    private Long applyId;

    @ApiModelProperty("注塑派工单编号")
    @TableField("zs_send_work_code")
    private String zsSendWorkCode;

    @ApiModelProperty("工序计划应用编号")
    @TableField("process_plan_code")
    private String processPlanCode;

    @ApiModelProperty("生产批次(ERP)")
    @TableField("batch_num")
    private String batchNum;

    @ApiModelProperty("派工单状态")
    @TableField("send_work_sts")
    private String sendWorkSts;

    @ApiModelProperty("订单日期")
    @TableField("order_date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate orderDate;

    @ApiModelProperty("开工日期")
    @TableField("start_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @ApiModelProperty("完工日期")
    @TableField("end_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @ApiModelProperty("生产订单类型")
    @TableField("prod_order_type")
    private String prodOrderType;

    @ApiModelProperty("工序名称")
    @TableField("process_name")
    private String processName;

    @ApiModelProperty("设备编码")
    @TableField("eq_code")
    private String eqCode;

    @ApiModelProperty("设备名称")
    @TableField("eq_name")
    private String eqName;

    @ApiModelProperty("模具编码")
    @TableField("mould_code")
    private String mouldCode;

    @ApiModelProperty("模具名称")
    @TableField("mould_name")
    private String mouldName;

    @ApiModelProperty("存货编码")
    @TableField("inv_code")
    private String invCode;

    @ApiModelProperty("存货名称")
    @TableField("inv_name")
    private String invName;

    @ApiModelProperty("规格型号")
    @TableField("inv_type")
    private String invType;

    @ApiModelProperty("生产数量")
    @TableField("prod_num")
    private Integer prodNum;

    @ApiModelProperty("派工数")
    @TableField("send_work_num")
    private Integer sendWorkNum;

    @ApiModelProperty("主计量单位编码")
    @TableField("unit_code")
    private String unitCode;

    @ApiModelProperty("主计量单位名称")
    @TableField("unit_name")
    private String unitName;

    @ApiModelProperty("派工日期")
    @TableField("send_work_date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate sendWorkDate;

    @ApiModelProperty("班次编码")
    @TableField("classes_code")
    private String classesCode;

    @ApiModelProperty("班次名称")
    @TableField("classes_name")
    private String classesName;

    @ApiModelProperty("生产人员工号")
    @TableField("work_people_code")
    private String workPeopleCode;

    @ApiModelProperty("生产人员名称")
    @TableField("work_people_name")
    private String workPeopleName;

    @ApiModelProperty("派工人数")
    @TableField("send_work_people_num")
    private Integer sendWorkPeopleNum;

    @ApiModelProperty("订单池应用编号")
    @TableField("order_pool_code")
    private String orderPoolCode;

    @ApiModelProperty("工作中心编码")
    @TableField("work_center_code")
    private String workCenterCode;

    @ApiModelProperty("工作中心名称")
    @TableField("work_center_name")
    private String workCenterName;

    @ApiModelProperty("设备类型编码")
    @TableField("eq_type_code")
    private String eqTypeCode;

    @ApiModelProperty("设备类型名称")
    @TableField("eq_type_name")
    private String eqTypeName;

    @ApiModelProperty("班组编码")
    @TableField("team_code")
    private String teamCode;

    @ApiModelProperty("班组名称")
    @TableField("team_name")
    private String teamName;

    @ApiModelProperty("标准工时")
    @TableField("standard_working_hour")
    private String standardWorkingHour;

    @ApiModelProperty("标准人数")
    @TableField("standard_num")
    private Integer standardNum;

    @ApiModelProperty("工序行号")
    @TableField("process_line_num")
    private Integer processLineNum;

    @ApiModelProperty("工序编码")
    @TableField("process_code")
    private String processCode;

    @ApiModelProperty("工序备注")
    @TableField("process_mark")
    private String processMark;

    @ApiModelProperty("是否首道工序")
    @TableField("first_operation")
    private String firstOperation;

    @ApiModelProperty("是否末道工序")
    @TableField("last_operation")
    private String lastOperation;

    @ApiModelProperty("是否报工")
    @TableField("report")
    private String report;

    @ApiModelProperty("生产订单应用编号")
    @TableField("order_code")
    private Long orderCode;

    @ApiModelProperty("生产订单号(ERP)")
    @TableField("prod_order_code")
    private String prodOrderCode;

    @ApiModelProperty("生产订单行号(ERP)")
    @TableField("prod_order_line_num")
    private Integer prodOrderLineNum;

    @ApiModelProperty("打印次数")
    @TableField("print_num")
    private Integer printNum;

    @ApiModelProperty("累计报工数")
    @TableField("total_report_num")
    private Integer totalReportNum;

    @ApiModelProperty("累计生产数")
    @TableField("total_work_num")
    private Integer totalWorkNum;

    @ApiModelProperty("累计合格数")
    @TableField("total_acceptance_num")
    private Integer totalAcceptanceNum;

    @ApiModelProperty("累计报废数")
    @TableField("total_scrap_num")
    private Integer totalScrapNum;

}
